import React, { FC } from 'react';
import { View, Text } from '@tarojs/components';
import { styled } from 'linaria/react';
import { useClassName } from '@/utils/index';
import { ActivitiesContext, useActivitiesExhibitionList } from './MyActivitiesContext';
import RootPageComponent from '@/pages/components/RootPageComponent/RootPageComponent';
import SlideBanner from './SlideBanner/SlideBanner';
import ActivitiesList from './ActivitiesList/ActivitiesList';
import RootPageComponentGotoMenu from '@/pages/components/RootPageComponentGotoMenu/RootPageComponentGotoMenu';

export interface IProps extends ICompProps {}
MyActivities.defaultProps = {} as Partial<IProps>;
function MyActivities(props: IProps) {
    const { className, style } = props;
    const localClassName = useClassName('MyActivities', className);
    // const { activitiesExhibitionState } = useActivetiesExhibitionList();
    return (
        <RootView className={localClassName} style={style}>
            <View className="Activites-inner">
                <RootPageComponent
                    enableExpand={false}
                    leftTitle="我的活动"
                    headNavContentRightSlot={<RootPageComponentGotoMenu />}>
                    <SlideBanner></SlideBanner>
                    <ActivitiesList></ActivitiesList>
                </RootPageComponent>
            </View>
        </RootView>
    );
}
export default React.memo(MyActivities as FC<IProps>);
const RootView = styled(View)`
    &.MyActivities {
    }
`;
